var strArr = [20, 2, 21, 14, 5, 18, 23, 50, 60, 35];

function quickSort(arr) {
	if (arr.length <= 1) {
		return arr;
	}
	var centerIndex = Math.floor(arr.length / 2);
	var center = arr.splice(centerIndex,1)[0];
	var left = [];
	var right = [];
	for (var i = 0; i < arr.length; i++) {
		if (arr[i] < center) {
			left.push(arr[i]);
		} else {
			right.push(arr[i]);
		}
	}
	return quickSort(left).concat([center], quickSort(right));
}

var objItem = {};
var keyBase = ['a','b','c','d','e','f','g','h','i','j','k','l','m','n','o','p','q','r','s','t','u','v','w','x','y','z'];
function createKeyName() {
	var keyName = ""
	for (var i = 1; i <= 4; i++) {
		var index = Math.floor(Math.random()*10000) % 26;
		keyName += keyBase[index];
	}
	return keyName;
}

function createValue() {
	var keyName = ""
	var lastIndex = 0;
	for (var i = 1; i <= 4; i++) {
		var index = Math.floor(Math.random()*10000) % 26;
		if (index < lastIndex) {
			i --;
			continue;
		}
		lastIndex = index;
		keyName += keyBase[index];
	}
	return keyName;
}

function create10Obj() {
	for (var i = 0; i < 10; i++) {
		objItem[createKeyName()] = createValue();
	}
	
}

create10Obj();
//设定分支